/******************************************************************************
** 
** Escape (exercise 3.2).
** 
** File name:	escapes.c
** Compilation:	cc escapes.c -o escapes
** Execution:	./escapes
** 
** Description:
** Converts non-visible escape sequences like '\n' and '\t' to characters for 
** output ("\n", "\t") and vice versa.
** 
******************************************************************************/
#include <stdio.h>
#include "myfunctions.h"

#define MAX_STRING_LENGTH 255


int main()
{
    char str[MAX_STRING_LENGTH];
    unsigned short int length;
    
    while(length=GetString(str, MAX_STRING_LENGTH)) {
//        PrintEscapes(str, length);
        HideEscapes(str, length);
    }
    return 0;
}